var express = require('express');
var router = express.Router();
const empDao = require('../Dao/empDao');

//子路由
/* GET home page. */
router.get('/', function(req, res, next) {
  empDao.findEmpDao(req,res)
});

/* POST home page. */
router.post('/add', function(req, res, next) {
  empDao.addEmpDao(req,res)
});

/* DELETE home page. */
router.delete('/delete', function(req, res, next) {
  empDao.deleteEmpDao(req,res)
});

/* PUT home page. */
router.put('/update', function(req, res, next) {
  empDao.changeEmpDao(req,res)
});

module.exports = router;
